package com.fourth.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljx.entity.Permission;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2023/2/23 9:56
 * @Version 1.0
 */
@Repository
public interface PermissionDao extends BaseMapper<Permission> {
	/**
	 * 通过用户id查询用户权限
	 * @param empid
	 * @return
	 */
	List<Permission> selectPermissionByEmpId(String empid);

	/**
	 * 通过用户名字查询用户权限
	 * @param username
	 * @return
	 */
	List<Permission> findPermissionByUsername(Object username);
}
